package com.xjoyt.pay.share.dao;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.share.params.BucketPageParam;
import com.xjoyt.pay.share.po.Bucket;

public interface BucketRepositoryCustom {

	PageResult<Bucket> loadPage(PageParam<BucketPageParam> param);

	Bucket findOneByEndpointAndAccessKeyAndSecretKeyAndName(String endpoint, String accessKey, String secretKey,
			String name);

	Bucket findOneByIdNotAndEndpointAndAccessKeyAndSecretKeyAndName(String id, String endpoint, String accessKey,
			String secretKey, String name);

	Bucket findOneByEnabledTrueAndDefaultBucketTrue();
}
